package modele;

import java.util.Collection;
import java.util.TreeSet;

public class Spe implements Comparable <Spe> {
    private String nom;
    private Collection <Med> lesMeds = new TreeSet <Med> ();
    
    public Spe(String nom) {
        this.nom = nom;
    }

    public String getNom() {
        return nom;
    }
    
    public int compareTo(Spe s) {
        return nom.compareTo((s).nom);
    }

    public Collection<Med> getLesMeds() {
        return lesMeds;
    }
    
    public void addMed(Med m) {
        lesMeds.add(m);
    }
}